<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
<script type="text/javascript" language="javascript">
$(window).resize(function(){
  resize();
});
$(document).ready(function(){
  resize();
});

function resize() {
  if ($(window).width() <= 1024) {
    $("body").css("width","1024px");
  } else {
    $("body").css("width","auto");
  }
}
</script>
</head>

<body class="noScroll">
<script type="text/javascript" language="javascript">
$(document).ready(function(){
  $(".nav_item").mouseenter(function(){
    $(".nav_hover").removeClass("nav_hover");
    $(this).addClass("nav_hover");
  })
  $(".nav_item").mouseleave(function(){
    $(".nav_hover").removeClass("nav_hover");
  })
  $(".nav_item").click(function(){
    $(".nav_selected").removeClass("nav_selected");
    $(this).addClass("nav_selected");
  })
  $('.prev, .next').mouseenter(function(){
    $(this).css('background-position', 'left center');
  }).mouseleave(function(){
    $(this).css('background-position', '-15px center');
  });
  /* 导航栏 翻页 */
  (function(){
    var maxNavNumberConfig = 8; //显示的个数
    if ($('.scrollBox ul .nav_item').length > maxNavNumberConfig) {
      var scrollWidth = 0, currentIndex = 0;
      $('.scrollBox ul li:lt('+(maxNavNumberConfig*2-1)+')').each(function(i){
        scrollWidth += $(this).width();
      });
      $('.scrollBox').width(scrollWidth);
      $('.prev, .next').removeClass('none');
      $('.next').bind('click', function(){
        if ($('.scrollBox ul li:gt('+currentIndex+')').length>=maxNavNumberConfig*2) {
          var nextWidth = $('.scrollBox ul li').eq(currentIndex).width() + $('.scrollBox ul li').eq(currentIndex+1).width();
          var currentLeft = parseInt($('.scrollBox ul').css('left').replace('px', ''));
          $('.scrollBox ul').animate({'left': currentLeft - nextWidth}, 'fast');
          currentIndex += 2;
        }
      });
      $('.prev').bind('click', function(){
        if (currentIndex > 0) {
          var nextWidth = $('.scrollBox ul li').eq(currentIndex -1).width() + $('.scrollBox ul li').eq(currentIndex-2).width();
          var currentLeft = parseInt($('.scrollBox ul').css('left').replace('px', ''));
          $('.scrollBox ul').animate({'left': currentLeft + nextWidth}, 'fast');
          currentIndex -= 2;
        }
      });
    }
  })();
})
</script>
<div id="top" class="pr">
  <h1 class="logo IE6png"><img src="{_PUBLIC_URL_}Images/logo.png" /></h1>
  <div class="topBar pa"> 您好，{@$admin['admin_name']@} 欢迎使用伯仁网络网站管理系统！&nbsp;&nbsp;[<a href="./" target="_blank" class="a-white">前台首页</a>]&nbsp;[<a href="{@:U('admin.php?m=index&a=clearcache')@}" target="mainFrame" class="a-white">清空缓存</a>]&nbsp;[<a href="http://www.boren.cn" target="_blank" class="a-white">技术支持</a>]&nbsp;[<a href="admin.php?m=index&a=setlogout" class="a-white">安全退出</a>] </div>
  <div class="nav pa pl15">
    <div class="nav_left pa"></div>
    <div class="fl prev cp IE6bg none"></div>
    <div class="fl oh scrollBox">
      <ul class="pr z10">
        <li class="nav_item nav_selected"><a href="admin.php?m=index&a=menu" target="menuFrame">后台首页</a></li>
        <li class="nav_line"></li>
        <li class="nav_item"><a href="admin.php?m=index&a=menu&route=system" target="menuFrame">系统管理</a></li>
        {@/* 顶部导航钩子 */@}
        {#volist name="topMenu" id="top"#}
        <li class="nav_line"></li>
        <li class="nav_item"><a href="admin.php?m=index&a=menu&route={@$top.key@}" target="menuFrame">{@$top.name@}</a></li>
        {#/volist#}
        <li class="nav_line"></li>
        <li class="nav_item"><a href="admin.php?m=index&a=menu&route=user" target="menuFrame">用户管理</a></li>
      </ul>
    </div>
    <div class="fl next cp IE6bg none"></div>
    <div class="nav_right pa"></div>
  </div>
</div>
</body>
</html>
